package com.xinhe.web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "系统用户保存对象")
public class LocalUserUpdatePasswordModel{
    @NotBlank(message = "请输入旧密码")
    @ApiModelProperty("旧密码")
    private String oldPassword;
    @Length(min = 6, message = "密码长度最少6位数")
    @NotBlank(message = "请输入新密码")
    @ApiModelProperty("新密码")
    private String newPassword;
    @Length(min = 6, message = "密码长度最少6位数")
    @NotBlank(message = "请输入确认密码")
    @ApiModelProperty("确认密码")
    private String confirmPassword;
}
